/*
** my_revstr.c for my_revstr in /home/nadali_t//local/piscine/Jour_06/ex_03
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Mon Oct  8 09:56:28 2012 thomas nadalie
** Last update Mon Nov 19 16:42:47 2012 thomas nadalie
*/

#include	"my.h"

char		*my_revstr(char *str)
{
  int		i;
  int		j;
  char		c;

  i = my_strlen(str) - 1;
  j = 0;
  while (i >= j)
    {
      c = str[j];
      str[j] = str[i];
      str[i] = c;
      j = j + 1;
      i = i - 1;
    }
  j = my_strlen(str);
  str[j] = '\0';
  return (str);
}
